home *** CD-ROM | disk | FTP | other *** search
- Path: btree.is.brooktree.com!mdimeo
- From: mdimeo@brooktree.com (Matt DiMeo)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: Q: '\n' character
- Date: 16 Apr 1996 02:17:17 GMT
- Organization: Brooktree
- Message-ID: <4kuvvd$smk@btree.brooktree.com>
- References: <4kj66f$k0o@ren.cei.net> <1996Apr11.192937.25676@sq.com> <829396473snz@genesis.demon.co.uk> <4kpd2g$eeb@masala.cc.uh.edu>
- NNTP-Posting-Host: prune.is.brooktree.com
-
- In article <4kpd2g$eeb@masala.cc.uh.edu>, Spasmo <cosc19z5@Bayou.UH.EDU> wrote:
- >Ok, I've got a question at this point. Is it really proper to say
- >if (ptr)? From what I've read, NULL wasn't supposed to be guaranteed
- >to work with true/false tests like the above, so the only safe way
-
- Yes, it's safe. Whether it's good style is a matter of opinion. The
- comp.lang.c FAQ covers this and other NULL pointer topics in great detail.
-
- -m@
-